package gamefw.gameplugin;


/**
 * The listener interface for receiving User Interface events.
 * The class that is interested in processing a User Interface
 * event implements this interface, and the object created
 * with that class is registered with a component using the
 * component's <code>addUIEventListener<code> method. When
 * the UIEvent event occurs, that object's appropriate
 * method is invoked.
 *
 */
public interface UIEventListener {

	/**
	 * Callback method for when a given coordinate is selected.
	 */
	public void onClick(Coordinate position);
	
	/**
	 * Callback method for when exists a drag event between two coordinates.
	 */
	public void onDrag(Coordinate from, Coordinate to);
}
